<template>
  <view class="myinfo-container">
    <view class="header-container">
      <view class="left" @click="toBack"><text class="iconfont icon-back"></text></view>
      <view class="center">个人信息</view>
      <view class="right"></view>
    </view>
    <view class="main-container">
      <view class="form-container">
        <view class="form-item">
          <view class="label">头像</view>
          <view class="content">
            <img :src="$config.MAIN_IMAGE_SERVICE_ADDR + '/moblie_app_slices/mine_slices/avatar.png'" alt="">
          </view>
          <img class="icon-right" :src="$config.MAIN_IMAGE_SERVICE_ADDR + '/moblie_app_slices/mine_slices/icon_right@3x.png'" alt="">
        </view>
        <view class="form-item">
          <view class="label">昵称</view>
          <view class="content">
            <input type="text" value="富春山居">
          </view>
          <img class="icon-right" :src="$config.MAIN_IMAGE_SERVICE_ADDR + '/moblie_app_slices/mine_slices/icon_right@3x.png'" alt="">
        </view>
        <view class="form-item">
          <view class="label">手机号</view>
          <view class="content">
            <input type="text" value="15578900990">
          </view>
          <img class="icon-right" :src="$config.MAIN_IMAGE_SERVICE_ADDR + '/moblie_app_slices/mine_slices/icon_right@3x.png'" alt="">
        </view>
        <view class="form-item">
          <view class="label">微信号</view>
          <view class="content">
            <input type="text" value="fuchunshanju">
          </view>
          <img class="icon-right" :src="$config.MAIN_IMAGE_SERVICE_ADDR + '/moblie_app_slices/mine_slices/icon_right@3x.png'" alt="">
        </view>
        <view class="form-item">
          <view class="label">密码</view>
          <view class="content">
            设置密码
          </view>
          <img class="icon-right" :src="$config.MAIN_IMAGE_SERVICE_ADDR + '/moblie_app_slices/mine_slices/icon_right@3x.png'" alt="">
        </view>
      </view>
      <view class="form-flooter">
        <button>保存</button>
      </view>
    </view>
  </view>
</template>
<script lang="ts">
import Vue from 'vue'
export default Vue.extend({
  methods: {
    toBack() {
      uni.navigateBack({ delta: 1 })
    }
  }
})
</script>
<style scoped>
.myinfo-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f3f3f3;
}

.header-container {
  color: #333333;
  height: 24px;
  padding: 15px;
  flex-shrink: 0;
  display: flex;
  background: #FFFFFF;
}

.header-container .left,
.header-container .right {
  font-size: 16px;
  width: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-container .center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-container {
  flex-grow: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-container .form-item {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #f3f3f3;
  align-items: center;
  background-color: #FFFFFF;
}

.form-container .form-item .label {
  color: #666666;
  font-size: 16px;
  width: 120px;
  flex-shrink: 0;
}

.form-container .form-item .content {
  color: #333333;
  font-size: 16px;
  flex-grow: 1;
  text-align: right;
}

.form-container .form-item .content img {
  width: 45px;
  height: 45px;
}

.form-container .form-item .icon-right {
  width: 7px;
  height: 14px;
  padding-left: 5px;
  flex-shrink: 0;
}

.form-flooter {
  padding: 15px;
}

.form-flooter button {
  color: #FFFFFF;
  background-color: #006b65;
  border-color: #006b65;
  border-radius: 23px;
}
</style>